package com.yy.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data // getter,setter toString()
@AllArgsConstructor // 有参构造
@NoArgsConstructor // 无参构造
public class Card {
    private Integer cardId;
    private String cardName;
    private String carNumber;

    public void show() {
        System.out.println(cardId + ":" + cardName + ":" + carNumber);
    }
}
